package com.wwg;

/**
 * 模拟客户端实现
 */
public class SunnyTest {

    public static void main(String[] args) {
	// write your code here
        HairFactory factory = new HairFactory();
//        HairInterface left = factory.getHair("left");
//        left.draw();

//        HairInterface left  = factory.getHairByClass("com.RightHair");
//        left.draw();

        HairInterface hair  = factory.getHairByClassKey("left");
        hair.draw();

    }

}